from manimlib import *
from numpy import square
import numpy as np
from scipy import constants as const

# class ArrowLineTip(ArrowTip, Line):
#     def __init__(self, length=0.35, **kwargs):
#         Line.__init__(
#             self,stroke_width=30,end=0.95*LEFT, **kwargs
#         )
#         self.stretch_to_fit_height(length)

class Test(Scene):
    #75cfb8
    #浅绿
    #bbdfc8
    #浅黄
    #f0e5d8
    #深黄
    #ffc478
    def construct(self):
        axes = Axes(
            axis_config={
                "color": BLACK,
                },
            tips=False,
        )
        self.add(Text('东',color=BLACK).next_to(axes,RIGHT),Text('西',color=BLACK).next_to(axes,LEFT),Text('南',color=BLACK).next_to(axes,DOWN),Text('北',color=BLACK).next_to(axes,UP))
        robot=SVGMobject('img/robot.svg').scale(0.3).rotate(0.75*PI)
        t=Arrow(ORIGIN,[4,4,0],color='#75cfb8',stroke_width=6,buff=0)
        self.add(axes,robot)
        self.wait(0.05)
        self.remove(robot)
        self.add(t,Tex(r'T',color='#75cfb8').next_to(t))
        self.wait(0.05)
        self.add(Arrow(ORIGIN,[2,-2,0],color='#75cfb8',stroke_width=6,buff=0),Arrow(ORIGIN,[-1,-1,0],color='#75cfb8',stroke_width=6,buff=0),Arrow(ORIGIN,[-0.5,0.5,0],color='#75cfb8',stroke_width=6,buff=0))
        self.wait(0.05)
